[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
file                     Data Type for Declaring Data Files

 type
   <ftype>  = file of <basetype>;

 var
   <fvar>   : file of <basetype>;
   <fvar>   : file;

    The keyword FILE is used to declare binary data files (as opposed to
    text files, which are of type TEXT). It can also be used to declare
    untyped files (specific to Turbo Pascal).

         <ftype>    Name of file type defined.

          <fvar>    Name of file variable declared.

      <basetype>    Basic file element. Can be any data type, including
                    arrays, records, or sets. Cannot be a FILE type.

  -------------------------------- Example ---------------------------------

           type IntFile  = file of Integer;
                Lists    = array[1..1000] of Real;

           var  ListFile : file of Lists;
                UFile    : file;

See Also: text files
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson